package top.sjydzq.www.service;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.sjydzq.www.bean.Order;

import java.util.List;

@Repository("OrderDAO")
@Mapper
public interface OrderService {
    public List<Order> selectAll();
    public List<Order> selectAllByUid(int userId);
    public Order selectById(int orderId, int userId);
    public int selectLastId(int userId);
    public boolean addOrder(int userId);
    public void setOrderStatus(int orderId, int status);
    public void remove(int orderId);
}
